package com.lanou.pianke.admin.service.impl;

import com.lanou.pianke.admin.mapper.AreplyMapper;
import com.lanou.pianke.admin.service.AreplyService;
import com.lanou.pianke.articlecomment.entity.ArticleReply;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AreplyServiceImpl implements AreplyService {
    @Autowired
    private AreplyMapper areplyMapper;

    @Override
    public List<ArticleReply> selectById(String id) {
        return areplyMapper.selectById(id);
    }

    @Override
    public void deleteById(String id) {
        areplyMapper.deleteById(id);
    }

    @Override
    public void deleteByReid(String reid) {
        areplyMapper.deleteByReid(reid);
    }

    @Override
    public void deleteByUid(Long uid) {
        areplyMapper.updateStatusByUid(uid);
    }


}
